home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / Dots & Pixels / toolsources / differential main.h < prev    next >
Text File  |  1995-09-29  |  1KB  |  64 lines

  1. typedef struct opts
  2. {
  3.     //
  4.     // User settable:
  5.     //
  6.     long numdots_1;
  7.     long numdots_2;
  8.     long num_noise_1;
  9.     long num_noise_2;
  10.     long lifetime_1;
  11.     long lifetime_2;
  12.     long noise_life_1;
  13.     long noise_life_2;
  14.     long diffusion_1;
  15.     long diffusion_2;
  16.     long switchinterval;
  17.     long stim_type;
  18.     long resolution_type;
  19.     long create_output;
  20.     long fixation_dot;
  21.     long round_frame;
  22.     long flickering;
  23.     //
  24.     // user settable, but should be left alone:
  25.     //
  26.     long d_log;
  27.     long d_rot_dir;
  28.     long d_trans;
  29.     long allow_modifications;
  30.     //
  31.     // Not user settable:
  32.     //
  33.     long stepping;
  34.     long numtimingloops;
  35. } opts;
  36.  
  37. typedef enum
  38. {
  39.     iRun = 1,        iQuit,            iDefaults,
  40.  
  41.     iNumDots1,        iNumDots2,        iNumNoiseDots1,    iNumNoiseDots2,
  42.  
  43.     iLife1,            iLife2,            iNoiseLife1,    iNoiseLife2,
  44.     iDiffusion1,    iDiffusion2,
  45.  
  46.     iSwitchInterval,
  47.  
  48.     i_dLog,            i_dTrans,        i_dRotDir,
  49.  
  50.     iTransparant,    iAnnulus,        iHalves,        iQuarts,
  51.     iEighths,        iCheckers8,        iCheckers16,    iSurprise,
  52.  
  53.     iFixationDot,    iLogClicks,        iCircularMask,    iFlickering,
  54.  
  55.     i128x128,        i256x256,        i512x512,        i1024x1024,
  56.     iAllowModifications,
  57.     iStepThrough,
  58.  
  59.     i_dLogStatic,    i_dTransStatic,    i_dRotDirStatic
  60. } dialogItems;
  61.  
  62. void PolarToCartesian( double r, double fi, double *x, double *y);
  63. void CartesianToPolar( double x, double y, double *r, double *fi);
  64.